#ifndef MESH_H
#define MESH_H

#include <d3d9.h>
#include <d3dx9.h>

class Mesh {

	private:

		LPD3DXMESH mesh;
		D3DMATERIAL9 *material;
		DWORD numMaterials; 

	public:

		Mesh(LPD3DXMESH mesh, D3DMATERIAL9* material, DWORD numMaterials);
		~Mesh();

		LPD3DXMESH getMesh();
		D3DMATERIAL9* getMaterial();
		DWORD getNumMaterials();

		void setMesh(LPD3DXMESH mesh);
		void setMaterial(D3DMATERIAL9 *material);
		void setNumMaterial(DWORD numMaterials);

};

#endif
